<?php

  $username = getenv('USER_NAME');

?>
<!DOCTYPE html>
<!--
  Copyright (C) 2020 Karam Assany <karam.assany@tuta.io>
  Licensed under the MIT (Expat) license
-->
<html>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <style>
      html {height: 100%; width: 100%; display: table;}
      body {
        padding: 2em;
        font-family: sans-serif;
        font-weight: bold;
        display: table-cell;
        text-align: center;
        vertical-align: middle;
        background-color: #a00505;
        color: white;
      }
      a:any-link{color: white;}
      header {font-size: 3em; padding: 1em;}
      main {padding: 3em;}
      footer {padding: 1.5em; font-size: 0.9em; line-height: 1.7em;}
    </style>
    <title>Group Anarchy Bot Instance</title>
  </head>
  <body>
    <header>
      <a href="/repo">
        Group Anarchy Bot Instance
      </a>
    </header>
    <main>
      This is an instance of <i>Group Anarchy Bot</i> for Telegram. You can use
      it (via
      <a href="https://t.me/<?php echo($username);?>">@<?php echo($username);?></a>)
      or <a href="/repo">host your own instance</a>.
    </main>
    <footer rel="license">
      Copyright &copy; 2020 <a href="/author">Karam Assany</a><br />
      <i>Group Anarchy</i> is licensed under the MIT (Expat) license
    </footer>
  </body>
</html>
